<?php
    require("../models/webconfig.php");
    require("../models/class.connection.php");
    require("../models/entities/class.CategoryEntity.php");
    require("../models/repositories/class.CategoryRepository.php");
    $categoryRepository = new CategoryRepository();
    if(isset($_POST['sectionID']))
    { 
        $sectionID = $_POST['sectionID'];
    } 
    else 
        exit();
    $arrCategory = $categoryRepository->GetCategoriesBySectionID($sectionID);
    print_r($arrCategory);
    foreach($arrCategory as $category){
?>
<option value="<?php echo $category->ID_i; ?>"><?php echo $category->Name_s; ?></option>
<?php
    }
?>